package cn.rick.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 供应商
 * </p>
 *
 * @author rick
 * @since 2022-11-16 09:26:11
 */
@Getter
@Setter
@TableName("supplier")
@ApiModel(value = "Supplier对象", description = "供应商")
public class Supplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("供应商名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("供应商运营模式")
    @TableField("model")
    private String model;

    @ApiModelProperty("供应商类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("采购员")
    @TableField("buy_user")
    private String buyUser;

    @ApiModelProperty("区域")
    @TableField("area")
    private String area;

    @ApiModelProperty("详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("联系人")
    @TableField("contacts")
    private String contacts;

    @ApiModelProperty("联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("联系邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("开户行")
    @TableField("bank_deposit")
    private String bankDeposit;

    @ApiModelProperty("银行卡账户名")
    @TableField("account_name")
    private String accountName;

    @ApiModelProperty("银行卡号")
    @TableField("bank_card_no")
    private String bankCardNo;

    @ApiModelProperty("主营产品")
    @TableField("main_product")
    private String mainProduct;

    @ApiModelProperty("合作登录")
    @TableField("cooperation_level")
    private String cooperationLevel;

    @ApiModelProperty("合作方式")
    @TableField("cooperation_mode")
    private String cooperationMode;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("删除标志")
    @TableField("del_flag")
    @TableLogic
    private String delFlag;
}
